﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TT.HelpInfo;
using SQLHelper;
using Bill.BasDLL.dao;
using Bill.BasDLL.ety;
using System.Data;

namespace Bill.BasDLL.biz
{
    public class bizBillPrice : basClassDeclare
    {
        daoOraBillPrice doOraBillPrice;

        public bizBillPrice(TT.Module.sysLogin.etyBaeSystemParamter basSysPara)
        {
            doOraBillPrice = new daoOraBillPrice(basSysPara);
        }

        public bool Insert(etyBillPrice eyTrk)
        {
            return doOraBillPrice.Insert(eyTrk);
        }

        public bool Update(etyBillPrice eyTrk)
        {
            return doOraBillPrice.Update(eyTrk);
        }

        public bool Delete(etyBillPrice eyTrk)
        {
            return doOraBillPrice.Delete(eyTrk);
        }

        public IList<etyBillPrice> GetBillPrice(string favId, string client, string billCode)
        {
            DataTable dt = doOraBillPrice.GetBillPrice(favId, client, billCode);
            IList<etyBillPrice> ilRusult = TT.Common.Converts.ConvertToIList<etyBillPrice>(dt);
            return ilRusult;
        }
        public IList<etyClient> GetClient()
        {
            DataTable dt = doOraBillPrice.GetClient();
            IList<etyClient> ilRusult = TT.Common.Converts.ConvertToIList<etyClient>(dt);
            return ilRusult;
        }

        public IList<etyBillCode> GetBillCode()
        {
            DataTable dt = doOraBillPrice.GetBillCode();
            IList<etyBillCode> ilRusult = TT.Common.Converts.ConvertToIList<etyBillCode>(dt);
            return ilRusult;
        }

        public IList<etyArea> GetArea(string clientId, string bussType)
        {
            DataTable dt = doOraBillPrice.GetArea(clientId, bussType);
            IList<etyArea> ilRusult = TT.Common.Converts.ConvertToIList<etyArea>(dt);
            return ilRusult;
        }
    }
}
